﻿#include "SIX_Utility.h"
//#include "SIX_XMLParser.h"
#include "SIX_SystemInfo.h"
//#include "SIX_ControlButton.h"
//#include "SIX_CallBackBox.h"

#ifdef WIN32
#include <windows.h>
//#pragma comment(lib,"Winmm.lib")
#pragma comment(lib,"Iphlpapi.lib")
#endif

#include <math.h>

//SIX_Utility *SIX_Utility::m_pUtility = 0;

SIX_MP::SIX_MP()
{
	mp = new MP();
}

SIX_MP::~SIX_MP()
{
	mp->clear();
#ifdef WIN32
	mp->swap(MP());
#endif
	CC_SAFE_DELETE(mp);
}

int SIX_MP::size()
{
	if (mp)
		return mp->size();
	return 0;
}

void SIX_MP::push_back(const char *val)
{
	if (mp)
		mp->push_back(val);
}

void SIX_MP::pop_back()
{
	if (mp)
		mp->pop_back();
}

const char *SIX_MP::at(int idx)
{
	if (mp)
		return mp->at(idx).c_str();
	return 0;
}
